home *** CD-ROM | disk | FTP | other *** search
/ Aminet 32 / Aminet 32 (1999)(Schatztruhe)[!][Aug 1999].iso / Aminet / disk / misc / ADFlib.lha / Lib / adf_hd.h < prev    next >
C/C++ Source or Header  |  1999-05-09  |  2KB  |  48 lines

  1. #ifndef _ADF_HD_H
  2. #define _ADF_HD_H 1
  3.  
  4. /*
  5.  *  ADF Library. (C) 1997-1998 Laurent Clevy
  6.  *
  7.  *  adf_hd.h
  8.  *
  9.  * Harddisk and devices code
  10.  */
  11.  
  12. #include"prefix.h"
  13.  
  14. #include "adf_str.h"
  15. #include "hd_blk.h"
  16. #include "adf_err.h"
  17.  
  18. int adfDevType(struct Device *dev);
  19. PREFIX void adfDeviceInfo(struct Device *dev);
  20.  
  21. RETCODE adfMountHd(struct Device *dev);
  22. RETCODE adfMountFlop(struct Device* dev);
  23. PREFIX struct Device* adfMountDev( char* filename);
  24. PREFIX void adfUnMountDev( struct Device* dev);
  25.  
  26. RETCODE adfCreateHdHeader(struct Device* dev, int n, struct Partition** partList );
  27. PREFIX RETCODE adfCreateFlop(struct Device* dev, char* volName, int volType );
  28. PREFIX RETCODE adfCreateHd(struct Device* dev, int n, struct Partition** partList );
  29. PREFIX RETCODE adfCreateHdFile(struct Device* dev, char* volName, int volType);
  30.  
  31. struct Device* adfCreateDev(char* filename, long cylinders, long heads, long sectors);
  32.  
  33. RETCODE adfReadBlockDev( struct Device* dev, long nSect, long size, unsigned char* buf );
  34. RETCODE adfWriteBlockDev(struct Device* dev, long nSect, long size, unsigned char* buf );
  35. RETCODE adfReadRDSKblock( struct Device* dev, struct bRDSKblock* blk );
  36. RETCODE adfWriteRDSKblock(struct Device *dev, struct bRDSKblock* rdsk);
  37. RETCODE adfReadPARTblock( struct Device* dev, long nSect, struct bPARTblock* blk );
  38. RETCODE adfWritePARTblock(struct Device *dev, long nSect, struct bPARTblock* part);
  39. RETCODE adfReadFSHDblock( struct Device* dev, long nSect, struct bFSHDblock* blk);
  40. RETCODE adfWriteFSHDblock(struct Device *dev, long nSect, struct bFSHDblock* fshd);
  41. RETCODE adfReadLSEGblock(struct Device* dev, long nSect, struct bLSEGblock* blk);
  42. RETCODE adfWriteLSEGblock(struct Device *dev, long nSect, struct bLSEGblock* lseg);
  43.  
  44.  
  45. #endif /* _ADF_HD_H */
  46.  
  47. /*##########################################################################*/
  48.